<main class="form-signin text-center">
<h1 class="h3 mb-3 fw-normal">请登录</h1>

<%= form_for(resource, as: resource_name, url: session_path(resource_name)) do |f| %>
  <div class="form-floating">
    <%= f.email_field :email, autofocus: true, autocomplete: "email", class: "form-control"%>
    <label for="user_email">Email address</label>
  </div>

  <div class="form-floating">
    <%= f.password_field :password, autocomplete: "current-password" ,class: "form-control"%>
    <label for="user_password">Password</label>

  </div>

  <% if devise_mapping.rememberable? %>
    <div class="checkbox mb-3">
      <%= f.check_box :remember_me %>
      <%= f.label :记住我 %>
    </div>
  <% end %>

  <div class="actions">
    <%= f.submit "登录", class:"w-100 btn btn-lg btn-primary" %>
  </div>
<% end %>

<%= render "devise/shared/links" %>
</main>